package com.loto.insurance.mis.web.db.mapper;

import java.util.List;
import java.util.Map;

import com.loto.insurance.mis.web.entity.CustInfo;

public interface CustInfoMapper {

  CustInfo findByName(String name);

  CustInfo findActiveByName(String name);

  CustInfo findAuthorityById(long userId);

  long insertCust(CustInfo custInfo);

  CustInfo findUsefulfeeById(long custId);

  int updateUsefulfeeById(Map<String, Object> params);

  CustInfo findUsefulfeeByName(String name);

  List<CustInfo> findAllCustPager(Map<String, Object> params);

  long findAllCustPagerCount(Map<String, Object> params);

  int updateCustById(CustInfo custInfo);

  CustInfo findById(long custId);
}
